<html>
<#include "../common/header.ftl">

<body>
    <h1>王卫的极简mini-blog</h1>
    <div class="content">
        <ol class="list">
        <#list articlePage as article>
            <li><a href="/p?id=${article.id}">${article.title}</a></li>
        </#list>
        </ol>
    </div>
    <div class="page">
        <#list 1..totalPages as index>
            <#if currentPage == index>
                <a class="disabled" href="javascript:void(0)">${index}</a>
            <#else>
                <a href="?page=${index}&size=${size}">${index}</a>
            </#if>
        </#list>

    </div>
</body>
</html>